package zsh.dao.Impl;

import zsh.dao.IBookDao;
import jdk.nashorn.internal.objects.annotations.Setter;

import java.util.Map;

public class BookDaoImpl implements IBookDao {
    private Map<String,Integer> map;

    public BookDaoImpl(Map<String, Integer> map) {
        this.map = map;
    }

    public BookDaoImpl() {
        
    }

    @Override
    public void pt() {
        map.entrySet().forEach(stringIntegerEntry -> {
            System.out.println("key:"+stringIntegerEntry.getKey()+" value:"+stringIntegerEntry.getValue());
        });
    }

    public void setMap(Map map) {
        this.map = map;
    }
}
